home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / comm / bbs / s342q07.lha / ctdlvirt.h < prev    next >
C/C++ Source or Header  |  1993-08-08  |  3KB  |  98 lines

  1. /*
  2. *                ctdlvirt.h
  3. *
  4. * Virtual room data structures.
  5. */
  6. /*
  7. *                History
  8. *
  9. * ??????? HAW    Created.
  10. */
  11. #define LD_DIR          "backbone"
  12. #define LOCAL_DIR       "peon"
  13. #define LD_CHANGE       0x01    /* Bit settings */
  14. #define LOC_CHANGE      0x02
  15. #define SENT_DATA       0x04
  16. typedef struct
  17.   {
  18.   label       vrName;         /* Name of the fiendish entity */
  19.   /* If this one not in use, make strLen(vrName) == 0 */
  20.   MSG_NUMBER  vrHiLocal,      /* # of current highest from local msg-file */
  21.   vrHiLD,         /* # of current highest from LD msg-file */
  22.   vrLoLocal,      /* # of current lowest from local msg-file */
  23.   vrLoLD;         /* # of current lowest from LD msg-file */
  24.   char         vrChanged;      /* temporary for changes */
  25.  
  26.   }
  27. VirtualRoom;
  28. #define VRoomInuse(x)           strLen(VRoomTab[x].vrName)
  29. /* #define VRoomKill(x)            VRoomTab[x].vrName[0] = 0 */
  30. #define VRoomKill(x)        zero_struct(VRoomTab[x])
  31. #define VGetMode(x)    ((x) & 7)
  32. #define VSetMode(x, y)    x = (x & (~7)) + y;
  33. #define VGetFA(x)    ((x) & 8)
  34. #define VSetFA(x)    x |= 8;
  35. #define VUnSetFA(x)    x &= (~8);
  36. typedef struct
  37.   {
  38.   int         WhichVirt;      /* Which virtual room? */
  39.   MSG_NUMBER  LocSent, LDSent;/* last msg-file sent */
  40.   char        mode;           /* Host or backbone of some sort */
  41.  
  42.   }
  43. VirtPoint;
  44. #define VIRT_LIMIT 15           /* CTDLCNFG.SYS on next major version     */
  45. typedef struct
  46.   {
  47.   VirtPoint VirtList[VIRT_LIMIT];
  48.  
  49.   }
  50. VirtNet;
  51. #define NORMAL          0
  52. #define BATCH           1
  53. #ifdef V_ADMIN
  54. typedef struct
  55.   {
  56.   char uses, mode;
  57.   MSG_NUMBER WhenNormal;
  58.   int VirtIndex;
  59.  
  60.   }
  61. TempData;
  62.  
  63.  
  64. #ifdef ANSI_PROTOTYPING
  65. TempData *SetNtoVList(int roomNo, int VNo);
  66. void ConNorVa(void);
  67. void VRename(void);
  68. void GenInit(void);
  69. void UpdVirtStuff(void);
  70. void AnalyzeArguments(int argc, char **argv);
  71. void InteractMode(void);
  72. void BatchMode(void);
  73. void AddRoom(void);
  74. void InitVirtual(void);
  75. void Delete(void);
  76. void Modify(void);
  77. void Display(void);
  78. void ResetNodes(int slot);
  79. void GetInputList(int index, char *prompt, int (*func)());
  80. int RemoveNodes(int index, label name);
  81. int AddNodes(int index, label name);
  82. int VirtualExists(label name);
  83. int DoesShare(int NodeNo, int RoomNo);
  84. int NorToVirtual(int VirtNo, TempData *list);
  85. int ChgNodes(int index, label name);
  86. char ReadMessage(int rover);
  87. char GetConString(char *prompt, char *buffer, int length);
  88. void ChkVirtArea(void);
  89. void VADebug(void);
  90. void SetVirtAreas(int RoomNo);
  91. void KillVirtAreas(int RoomNo);
  92. void splitIt(char *format, ...);
  93. int NEUtilGetch(void);
  94. int UtilGetch(void);
  95. int Add2Room(label NewName);
  96. #endif
  97. #endif
  98.